<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="/jquery/dist/jquery.js"></script>
  <link rel="stylesheet" href="/bootstrap/dist/css/bootstrap.min.css">
  <style>
    .l{
      float: left;
    }
    .r{
      float: right;
    }
   body{ background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 400;
  background-image: url(/img/images/login.webp);
  background-size: cover;
  }
  form{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 500px;
    height: 300px;
    background: #0B2C3E;
    opacity: 0.5;
  }
  .yanzheng{
    width: 100px;
    height: 40px;
    border: 1px solid #000;
    margin-top: 20px;
    margin-left: 20px;
  }
  .one,.two,.three{
    width: 80%;
    height: 40px;
    margin-left: 50px;
  }
  .yonghuming,.mima,.yanzhengma{
    width: 100%;
    text-align: center;
    font-size: 20px;
    color: #453350;
  }
  .denglu{
    /* margin-left: 220px; */
    margin-right: 60px;
  }
  .suiji{
    background: #C2E354;
    border-radius: 0px;
    width: 80px;
    height: 40px;
    margin-left: 50px;
    padding-left: 0px;
    text-align: center;
  }
  input{
    border-radius: 10px;
    border: 0px solid #000;
    outline: 0;
    margin-top: 20px;
    padding-left: 30px;
  }
  .logo{
    font-size: 30px;
    width: 30%;
    margin: 0 auto;
    margin-top: 130px;
    text-align: center;
    color: #A6E22E;
  }
  </style>
</head>

<body>
  <h1 class="logo">微信登录</h1>
  <form action="/dologin" method="post">
    <!-- <div class="yonghuming">用户名:</div> -->
    <input  class="one" placeholder="请输入用户名" type="text" name="user">
    <!-- <div class="mima">密码:</div> -->
    <input class="two" placeholder="请输入密码" type="password" name="pass"><br>
    <!-- <div class="yanzhengma">验证码:</div> -->
    <div>
      <input placeholder="请输入验证码" class="three" type="text" name="yanzhengma1">
    </div>
    <input class="suiji l" type="text" name="yanzhengma2" value="">
    <div class="yanzheng btn btn-info l">换一个</div>
    
    
    <input class="denglu btn btn-info r" type="submit" value="登录">
    
  </form>
</body>
<script>
  function suiji(){
      let a = rand(0,9).toString();
      let b = rand(0,9).toString();
      let c = rand(0,9).toString();
      let d = rand(0,9).toString();
      let suiji = a+b+c+d;
      $(".suiji").val(suiji);
  }
  suiji();
    $(".yanzheng").click(function(){
      suiji();
    })

  function rand(m,n){
    return Math.ceil(Math.random()*(n-m+1))+(m-1)
}
</script>
</html>